package com.it.tydic.estate.module.mapper.inner;

import com.github.pagehelper.Page;
import com.it.tydic.estate.common.base.BaseMapper;
import com.it.tydic.estate.module.model.inner.Guanlichu;
import com.it.tydic.estate.module.model.inner.TbCustomerProfile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TbCustomerProfileMapper extends BaseMapper<TbCustomerProfile> {
    /**
     * 添加模糊查询
     * @param map
     * @return
     */
    Page<TbCustomerProfile> selectLink(Map<String,Object>map);

    /**
     * 批量修改
     * @param customerProfile
     * @return
     */
    int updateBatch(TbCustomerProfile customerProfile);

    /***
     * 数据更新
     * @param customerProfile
     * @return
     */
    int updateCustomer(TbCustomerProfile customerProfile);
    /***
     * 管理处下拉框
     * @param userCode
     * @return
     */
    List<Guanlichu> getGLC(@Param("userCode")String userCode);

}